package com.kucowka.struts.actions.chat.history;

import java.util.Map;

import com.kucowka.struts.messages.Message;

public interface HistorySaver {

	/**
	 * Saves messages to persistent resource
	 * 
	 * @param messages Messages to be saved
	 * 
	 * @return Returns true if messages were successfully saved or false otherwise
	 * @throws NullPointerException if passed <b>messages</b> argument is null
	 * 
	 */
	public boolean saveMessages(Map<String, Message> messages);

	public Message loadMessage(String uuid);

}
